<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for todoListDelTaskController.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file todoListDelTaskController.php</h1>
<p>Documentation is available at <a href="../default/_ays_application_controller_todoListDelTaskController_php.html">todoListDelTaskController.php</a></p>
<div class="src-code">
<pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>
<li><a name="a2"></a><span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'option'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">{</span></li>
<li><a name="a3"></a>    <span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'submit'</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'idTaskDel'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">{</span></li>
<li><a name="a4"></a>        <span class="src-key">switch</span><span class="src-sym">(</span><span class="src-var">$_GET</span><span class="src-sym">[</span><span class="src-str">'option'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a5"></a>            <span class="src-key">case </span><span class="src-str">'check'</span>:</li>
<li><a name="a6"></a>                <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'idTaskDel'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$idTask</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a7"></a>                    <span class="src-id"><a href="../default/TodoListModel.html">TodoListModel</a></span><span class="src-sym">::</span><a href="../default/TodoListModel.html#methoddelTask">delTask</a><span class="src-sym">(</span><span class="src-var">$idTask</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a8"></a>                <span class="src-sym">}</span></li>
<li><a name="a9"></a>            <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a10"></a>        <span class="src-sym">}</span></li>
<li><a name="a11"></a>    <span class="src-sym">}</span></li>
<li><a name="a12"></a><span class="src-sym">}</span></li>
<li><a name="a13"></a><span class="src-inc">require_once </span><span class="src-id">MODEL_DIR</span>.<span class="src-str">'/TodoListModel.php'</span><span class="src-sym">;</span></li>
<li><a name="a14"></a><span class="src-var">$oTodoInstance </span>= <span class="src-key">new </span><span class="src-id"><a href="../default/TodoListModel.html">TodoListModel</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a15"></a><span class="src-var">$aiassTasksList </span>= <span class="src-var">$oTodoInstance</span><span class="src-sym">-&gt;</span><span class="src-id">getTasks</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a16"></a><span class="src-inc">require_once </span><span class="src-id">VIEW_DIR</span>.<span class="src-str">'/formTodoListDel.php'</span><span class="src-sym">;</span></li>
</ol></pre>
</div>
	<p class="notes" id="credit">
		Documentation generated on Sun, 30 Mar 2008 00:13:58 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</body>
</html>